package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.memorypieces.MemoryPiecesProgress;
import com.yanqu.road.logic.bussiness.DaoHelper;


/**
 * 记忆碎片
 */
public class MemoryPiecesBusiness {

    public static MemoryPiecesProgress getMemoryPiecesProgressMap(int activityId, long userId) {
        return DaoHelper.getMemoryPiecesDaoImpl().getMemoryPiecesProgress(activityId, userId);
    }

    public static boolean addMemoryPiecesProgress(MemoryPiecesProgress memoryPiecesProgress) {
        return DaoHelper.getMemoryPiecesDaoImpl().add(memoryPiecesProgress);
    }

    public static boolean updateMemoryPiecesProgress(MemoryPiecesProgress memoryPiecesProgress) {
        return DaoHelper.getMemoryPiecesDaoImpl().update(memoryPiecesProgress);
    }

}
